/**
*author : Joey.ma
*create date : 2022/05/30 
*updata date : 2022/05/30
*version : 1.0.0
**/


function setCookie(name, value){
    document.cookie = name + "=" + value;
}
function getCookie(name){
    var cookie = document.cookie;
    var arrcookie = cookie.split(";");
    var key = "";
    for(var i = 0;i<arrcookie.length;i++){
        key = arrcookie[i].split("=")
        if((key[0]).trim() == (name).trim()){
            return key[1];
        }
    }
}